package com.doge.walknovel.utils


const val deviceType = 2 // 1 or 2->android
const val PAGE_SIZE = 10

val appVersionName by lazy {
    try {
        appContext.packageManager.getPackageInfo(appContext.packageName, 0).versionName
            ?: ""
    } catch (e: Throwable) { // PackageManager.NameNotFoundException
        e.printStackTrace()
        ""
    }
}

val appVersionCode: Int by lazy {
    try {
        appContext.packageManager.getPackageInfo(appContext.packageName, 0).versionCode
    } catch (e: Throwable) { // PackageManager.NameNotFoundException
        e.printStackTrace()
        0
    }
}